const express = require("express");
const bodyParser = require("body-parser");
let app  = express();
app.use(bodyParser.urlencoded({extended:false}));
app.use(bodyParser.json());
app.use(express.static("static")); // 加载静态文件

// 引入用户路由 
let userRouter = require("./routers/userRouter");
app.use("/user",userRouter);  // express里的二级路由


app.listen(8989);

